package com.crane.oss.app.bean.request.appversion;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;


/**
 * @author zhenxing.pi
 * @email ccsu123456@qq.com
 * @date 2022年03月20日 23时05分57秒
 */
@ApiModel(description = "修改参数")

@Getter
@Setter
@ToString

public class UpdateAppVersionReq implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "", name = "id")
    @NotNull(message = "id不能为空")
    private Long id;

    @ApiModelProperty(value = "应用名称(YOULIAO, TASKER)", name = "name")
    @Size(min = 1, max = 255, message = "name长度不在范围内")
    private String name;

    @ApiModelProperty(value = "系统: android ios", name = "system")
    @Size(min = 1, max = 255, message = "system长度不在范围内")
    private String system;

    @ApiModelProperty(value = "版本号(如1.0.0)", name = "version")
    @Size(min = 1, max = 255, message = "version长度不在范围内")
    private String version;

    @ApiModelProperty(value = "当前升级号，初始值为1", name = "code")
    @NotNull(message = "code不能为空")
    private Integer code;

    @ApiModelProperty(value = "版本内容", name = "content")
    @Size(max = 1024, message = "content长度超长")
    private String content;

    @ApiModelProperty(value = "版本大小(KB)", name = "size")
    @Size(max = 255, message = "size长度超长")
    private String size;

    @ApiModelProperty(value = "最高兼容版本", name = "compatible")
    @Size(max = 255, message = "compatible长度超长")
    private String compatible;

    @ApiModelProperty(value = "更新地址", name = "linkUrl")
    @Size(max = 255, message = "linkUrl长度超长")
    private String linkUrl;


}
